/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.pa165.portalnahouby.api.dto;

import java.io.Serializable;

/**
 * DTO for Mushroom entity
 * 
 * @author Jakub Kutil
 */
public class MushroomDTO implements Serializable {

    private Long id;
    private String name;
    private Edibility edibility;
    private Month growFrom;
    private Month growTo;

    public MushroomDTO() {
    }

    public MushroomDTO(Long id, String name, Edibility edibility, Month growFrom, Month growTo) {
        this.id = id;
        this.name = name;
        this.edibility = edibility;
        this.growFrom = growFrom;
        this.growTo = growTo;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Edibility getEdibility() {
        return edibility;
    }

    public void setEdibility(Edibility edibility) {
        this.edibility = edibility;
    }

    public Month getGrowFrom() {
        return growFrom;
    }

    public void setGrowFrom(Month growFrom) {
        this.growFrom = growFrom;
    }

    public Month getGrowTo() {
        return growTo;
    }

    public void setGrowTo(Month growTo) {
        this.growTo = growTo;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 97 * hash + (this.id != null ? this.id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final MushroomDTO other = (MushroomDTO) obj;
        if (this.id != other.id || this.id == null) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "MushroomDTO{" + "id=" + id + ", name=" + name + ", edibility=" + edibility + ", growFrom=" + growFrom + ", growTo=" + growTo + '}';
    }
}
